//
// Created by ChaoDONG on 2021-03-17.
//

#include <stdio.h>

#define PI 3.14159

/*  #define指令还可定义字符和字符串常量。前者使用单引号，后者使用双
引号。如下所示：
#define BEEP '\a'
#define TEE 'T'
#define ESC '\033'
#define OOPS "Now you have done it!"
 */

int main(void)
{
    float area, circum, radius;

    printf("What is the radius of your pizza?\n");

    scanf("%f", &radius);

    area = PI * radius * radius;

    circum = 2.0 * PI *radius;

    printf("Your basic pizza parameters are as follows:\n");

    printf("circumference = %1.2f, area = %1.2f\n",
           circum,area);

    return 0;
}
